-- GENERATED SPELL FOR [Wrekt Slave] --


function spell0_18123(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18123', 6256, 1)
end

function spell1_18123(pUnit, Event) --@Shared Bonds,n/a--
pUnit:FullCastSpellOnTarget(34789,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18123', 603, 1)
end

function Sorts_18123(pUnit, Event)
local choix_sorts_18123 = math.random(0, 1)
if choix_sorts_18123 == 0 then
pUnit:RegisterEvent('spell0_18123', 1, 1)
end
if choix_sorts_18123 == 1 then
pUnit:RegisterEvent('spell1_18123', 1, 1)
end
end

function mob18123_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18123', math.random(1500, 3000), 1)
end

function mob18123_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18123_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18123_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18123, 1, 'mob18123_Action')
RegisterUnitEvent(18123, 2, 'mob18123_Leave')
RegisterUnitEvent(18123, 3, 'mob18123_Kill')
RegisterUnitEvent(18123, 4, 'mob18123_Die')
